package com.kkb.merchant.center.api;

import com.github.pagehelper.PageInfo;
import com.kkb.merchant.center.common.pojo.GoodsAttach;
import com.kkb.merchant.center.common.pojo.GoodsInfo;
import com.kkb.merchant.center.common.pojo.GoodsQueryCondition;
import com.kkb.merchant.center.common.pojo.ProductInfo;

import java.util.List;

public interface GoodsInfoService {

    PageInfo<GoodsInfo> queryAllByCondition(GoodsQueryCondition condition);

    int addProductInfo(ProductInfo productInfo, String extrattribute, String introduce);


    public String staticPageBuild(GoodsInfo goodsInfo);


    int deleteImgByGoodsId(Long goodsId);


    void relatedImg(GoodsAttach goodsAttach);


    List<GoodsAttach> getImgs(Long goodsId);

    int updateGoods(GoodsInfo goodsInfo);
}
